package jgl.vajra.management.part.mine.model;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.bean.CarAdvertisementPictureBean;
import jgl.vajra.management.bean.CarMemberPictureBean;
import jgl.vajra.management.part.mine.contract.MemberApplyContract;
import jgl.vajra.management.widget.manager.RxJavaHttpManager;
import jgl.vajra.management.widget.manager.retrofit.RetrofitJsonManager;

public class MemberApplyModel extends MemberApplyContract.Model{
    @Override
    public Observable<List<CarMemberPictureBean>> getCarMemberPictureData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getCarMemberPictureData(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }

    @Override
    public Observable<CarAdvertisementPictureBean> getCarAdvertisementPictureData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getCarAdvertisementPictureData(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
